package lexer;

public class Word extends Token{
	
	public String lexema = "";
	
	public Word(String s, int tag){
		super(tag);
		lexema = s;
	}
	
	public String toString(){
		return lexema;
	}
	
	public static final Word
	
		AND = new Word("&&", Tag.SINAL_AND),
		OR = new Word("||", Tag.SINAL_OR),
		IGUAL = new Word("==", Tag.SINAL_IGUAL),
		DIFERENTE = new Word("!=", Tag.SINAL_DIFERENTE),
		MENOR = new Word("<", Tag.SINAL_MENOR_Q),
		MENOR_IGUAL = new Word("<=", Tag.SINAL_MENOR_IGUAL_Q),
		MAIOR = new Word(">", Tag.SINAL_MAIOR_Q),
		MAIOR_IGUAL = new Word(">=", Tag.SINAL_MAIOR_IGUAL_Q),
		ATRIBUICAO = new Word(":=", Tag.ATRIBUICAO),
		
		VERDADEIRO = new Word("true", Tag.BOOLEAN_TRUE),
		FALSO = new Word("false", Tag.BOOLEAN_FALSE),
		
		MINUS = new Word("minus", Tag.MINUS),
		TEMP = new Word("temp", Tag.TEMP);
}
